package com.sbw.wx.path;

/**
 * Desc: 请求地址常量类
 * @Date: 2021/6/27 7:06
 * @Author: Lee
 * 面朝大海  春暖花开
 * */
public class RequestPathConst {

    /** 获取AccessToken */
    public static String getAccessToken = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={0}&secret={1}";

    /** 获取用户列表 */
    public static String getUserList = "https://api.weixin.qq.com/cgi-bin/user/get?access_token={0}&next_openid={1}";
    /** 获取用户信息 */
    public static String getUserInfo = "https://api.weixin.qq.com/cgi-bin/user/info?access_token={0}&openid={1}&lang=zh_CN";
    /** 批量获取用户信息 */
    public static String batchGetUserList = "https://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token={0}";

    /** 发送模板消息 */
    public static String sendTemplateMessage = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token={0}";
    /** 删除模板消息 */
    public static String deleteTemplateMessage = "https://api.weixin.qq.com/cgi-bin/template/del_private_template?access_token={0}";
    /** 获取模板列表 */
    public static String getTemplateList = "https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token={0}";

    /** 根据标签群发接口 */
    public static String sendGraphicMessageByTag = "https://api.weixin.qq.com/cgi-bin/message/mass/sendall?access_token={0}";
    /** 根据OpenId群发接口 */
    public static String sendGraphicMessageByOpenId = "https://api.weixin.qq.com/cgi-bin/message/mass/send?access_token={0}";
    /** 预览接口 */
    public static String previewGraphicMessage = "https://api.weixin.qq.com/cgi-bin/message/mass/preview?access_token={0}";
    /** 删除群发消息 */
    public static String deleteGraphicMessage = "https://api.weixin.qq.com/cgi-bin/message/mass/delete?access_token={0}";
    /** 查询群发消息发送状态 */
    public static String checkGroupSendStatus = "https://api.weixin.qq.com/cgi-bin/message/mass/get?access_token={0}";

    /** 新增永久素材 */
    public static String uploadSourceMaterial = "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token={0}&type={1}";
    /** 新增临时素材 */
    public static String uploadTempSourceMaterial = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token={0}&type={1}";
    /** 上传图片到微信服务器 图文消息内容里面的图片要换成微信的链接，微信外部的链接不认 */
    public static String changePicture2Wx = "https://api.weixin.qq.com/cgi-bin/media/uploadimg?access_token={0}";
    /** 上传图文消息素材 */
    public static String publishGraphicMessage = "https://api.weixin.qq.com/cgi-bin/media/uploadnews?access_token={0}";
    /** 上传缩略图 */
    public static String uploadThumb2Wx = "http://file.api.weixin.qq.com/cgi-bin/media/upload?access_token={0}&type={1}";
}
